{extend name="normal_base" /}
{block name="navigation"}{/block}
{block name="body"}
<div class="x-body">
    <form class="layui-form">
        <!--username-->
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red"></span>登录名
            </label>
            <div class="layui-input-inline">
                <input type="text" id="username" name="username" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" value="{$user_info['username']}">
            </div>
            <div class="layui-form-mid layui-word-aux">

            </div>
        </div>

        <!--email-->
        <div class="layui-form-item">
            <label for="L_email" class="layui-form-label">
                邮箱
            </label>
            <div class="layui-input-inline">
                <input type="text" id="L_email" name="email" lay-verify="m_email"
                       autocomplete="off" class="layui-input" value="{$user_info['email']}">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <!--<span class="x-red">*</span>-->
            </div>
        </div>

        <!--角色-->
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="x-red"></span>角色</label>
            <div class="layui-input-block">
                {foreach name="auth_group_list" item="vo"}

                <input type="checkbox" name="group_id[]" lay-skin="primary" title="{$vo.title}" value="{$vo.id}" {if condition="in_array($vo['id'],$user_info['group_id'])==true"}checked="checked"{/if} disabled />
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="id" value="{$user_info['id']}">
            </div>
        </div>
    </form>
</div>

{/block}